package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author peak
 * @since 2024-12-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("medical_record_disease")

/**
 * 病例和疾病在进行关联查询，联合主键
 * 优化的话，不能重复添加
 */

public class MedicalRecordDisease implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 病历id
     */
    private Integer medicalRecordId;

    /**
     * 疾病id
     */
    private Integer diseaseId;

    @TableField(exist = false)
    private Disease disease;

}
